/*
 * Creation : 21/03/2013
 */
package a2012c2.t6.chat.common;

/**
 * Excepcion para avisar que no se pudo conectar al socket
 * 
 * @author dwajser
 */
public class ConectionException extends RuntimeException {

	/**
	 * serial number
	 */
	private static final long serialVersionUID = -2214557935771047552L;

	private String message;

	/**
	 * Constructor
	 * 
	 * @param e
	 *            {@link Exception}
	 */
	public ConectionException(Exception e) {
		this(e, null);
	}

	/**
	 * Constructor
	 * 
	 * @param e
	 *            {@link Exception}
	 * @param message
	 *            {@link String}
	 * @author dwajser
	 */
	public ConectionException(Exception e, String message) {
		super(e);
		this.message = message;
	}

	@Override
	public String getMessage() {
		return message;
	}
}
